#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void copy(char* arr,int sz)
{   int i = 0;
  for(i=0;i<=sz;i++,arr++)
  {
     printf("%c",*arr);
  }
}
void reverse_string(char* string,int sz)
{    char c ;
     int d = 0;
	 int b = sz -1;
	if(d<=b)
	{
	 c = *string;
	*string = *(string+sz);
	*(string+sz)=c;
	 d++;
	 b--;
	 reverse_string((string+1),(sz-2));
	}
}

int main()
{
  char arr[]="abcdef";
  int sz = 0;
  sz = sizeof(arr)/sizeof(arr[0])-1;
  reverse_string(arr,sz);
  copy(arr,sz);
 return 0;
}